package com.example.demo.Service;

import java.util.ArrayList;
import java.util.Date;
import java.util.Map;

import com.example.demo.Entity.Book;
import org.apache.ibatis.annotations.Param;

public interface BookService {
    public ArrayList<Book> selectBookByCategory(String category);

    public ArrayList<Book> selectBookByKeyWord(String keyword);

    public ArrayList<Book> selectAll();

    public Book selectBookByISBN(String isbn);

    public void createNewBook(Book book);

    public boolean deleteBook(String isbn);

    public String selectCategoryName(String categoryId);

    public boolean editBookTitle(String isbn, String title);
    public boolean editBookAuthor(String isbn, String author);
    public boolean editBookCategoryID(String isbn, String category);
    public boolean editBookPages(String isbn, String pages);
    public boolean editBookWords(String isbn, String words);
    public boolean editBookPublisher(String isbn, String publisher);
    public boolean editBookPrice(String isbn, String price);
    public boolean editBookTotalCount(String isbn, String totalcount);
    public boolean editBookIntroduction(String isbn, String introduction);
    public boolean editBookActionDate(String isbn, String actiondate);
    public boolean editBookPictureUrl(String isbn, String pictureurl);
    public boolean editBookPictureBase(String isbn, String picturebase);
}
